﻿#include <iostream>
using namespace std;

int main() {
	int a[] = { 1,2,3,4,5 };
	int* p = a;

	for (int i = 0; i < 5; i++) {
		cout << "p+" << i << "=" << p + i << '\n';
		cout << "*(p+" << i << ")=" << *(p + i) << '\n';
		cout << "p[" << i << "]=" << p[i] << '\n';
	}
	cin.get();
}